{% extends "base.html" %}
{% load static %}

{% block title %}网上商城-登录{% endblock title %}
{% block toplink %}
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-4.6.2-dist/css/bootstrap.min.css' %}">
{% endblock toplink %}
{% block content %}
	<div class="login_top clearfix">
		<a href="/" ><img src="{% static 'images/logo02.png' %}" alt=""></a>
	</div>

	<div class="login_form_bg">
		<div class="login_form_wrap clearfix">

			<div class="login_form fr">
				<div class="login_title clearfix">
					<h1>用户登录</h1>
					<a href="/user/register/">前去注册</a>
				</div>
				<div class="form_input">
					<form method="post">
						{% csrf_token %}
						<input type="text" name="username" class="name_input" placeholder="请输入用户名" value="{{ username }}">
						<div class="user_error">输入错误</div>
						<input type="password" name="pwd" class="pass_input" placeholder="请输入密码">
						<div class="pwd_error">输入错误</div>
						<div class="more_input clearfix">
							<input type="checkbox" name="remember" {{ checked }}>
							<label>记住用户名</label>
							<a href="#">忘记密码</a>
						</div>
						<input type="submit" name="" value="登录" class="input_submit">
					</form>
				</div>
				{% if errmsg %}
                    <div class="alert alert-danger" role="alert">{{ errmsg }}</div>
                {% endif %}
			</div>
		</div>
	</div>

{% endblock content %}